<template>
  <el-dialog title="区域详情" :visible="isShow" width="630px" @close="closeFn">
    <el-form ref="addForm" :model="addForm">
      <el-form-item label="区域名称：" label-width="150px">
        <span>{{regionName}}</span>
      </el-form-item>
      <el-form-item label="包含点位:" label-width="150px" prop="remark">
        <el-table :data="regionInfo" style="width: 100%">
          <el-table-column label="序号">
            <template v-slot={row}>
              <span>{{row.index}}</span>
            </template>
          </el-table-column>
          <el-table-column prop="name" label="点位名称" width="180">
          </el-table-column>
          <el-table-column prop="vmCount" label="设备数量"> </el-table-column>
        </el-table>
      </el-form-item>
    </el-form>
  </el-dialog>
</template>

<script>
export default {
  props: {
    isShow: Boolean,
    regionInfo: Array,
    regionName: String,
  },
  data() {
    return {
      addForm: {
        regionName: "",
        remark: "",
      },
    };
  },
  created() {

  },
  methods: {
    closeFn() {
      this.$emit("update:isShow", false);
    },
  },
};
</script>

<style lang="scss" scoped>
.btn {
  width: 80px;
  height: 36px;
  border: none;
  padding: 0;
  line-height: 36px;
}
.cancel {
  background-color: #fbf4f0;
  color: #7e7570;
}
.confirm {
  background-color: #ff6d29;
  color: #fff;
}
</style>
